-- GENERATED SPELL FOR [Gankly Rottenfist] --


function spell0_18297(pUnit, Event) --@Stealth,Self--
pUnit:FullCastSpellOnTarget(32199,pUnit)
pUnit:RegisterEvent('Sorts_18297', 636, 1)
end

function Sorts_18297(pUnit, Event)
local choix_sorts_18297 = math.random(0, 0)
if choix_sorts_18297 == 0 then
pUnit:RegisterEvent('spell0_18297', 1, 1)
end
end

function mob18297_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_18297', math.random(1500, 3000), 1)
end

function mob18297_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18297_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob18297_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(18297, 1, 'mob18297_Action')
RegisterUnitEvent(18297, 2, 'mob18297_Leave')
RegisterUnitEvent(18297, 3, 'mob18297_Kill')
RegisterUnitEvent(18297, 4, 'mob18297_Die')
